package com.joejag.mavenstats.client.views.forms.project.add;

import com.joejag.mavenstats.client.dto.ProjectDTO;
import com.joejag.mavenstats.client.views.forms.project.ProjectDTOForm;

public class AddProjectDTOForm extends ProjectDTOForm
{
  public AddProjectDTOForm()
  {
    super(new ProjectDTO(), "Add New Project");
  }

  protected void createLayout(ProjectDTO project)
  {
    createProjectURLtextfield(project);
    createTeamSelectorCombo(project);
    createProjectNameTextfield(project);
    addURLtextfieldListener();
  }

  public String getText()
  {
    return "Add New Project";
  }

  public void performSomeAction(ProjectDTO project)
  {
    new AddProjectAction().performSomeAction(project);
  }
}
